package cloud.simple.service.impl;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Description;
import org.springframework.stereotype.Service;

import cloud.simple.dao.UserDao;
import cloud.simple.model.User;
import cloud.simple.service.UserService;

@Service
public class UserServiceImpl implements UserService {
	private final static Logger logger = LoggerFactory.getLogger(UserServiceImpl.class);
	@Autowired
	private UserDao userDao;

	@Override
	@Description("查询所有用户信息，并实现分页查询")
	public List<User> selectAllUser(int pageStart, int pageLimit, HttpServletRequest request) {
		List<User> userInfo = userDao.selectAllUser(pageStart, pageLimit);
		return userInfo;
	}
}
